using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._LayersandTableViews
{
    /// <summary>
    /// <para>Make Building Layer</para>
    /// <para>Creates a composite building layer from a dataset, either a BIM file workspace or a geodatabase dataset, such as the output of the BIM File To Geodatabase tool.</para>
    /// <para>根据数据集（BIM 文件工作空间或地理数据库数据集）创建复合建筑图层，例如 BIM 文件转地理数据库工具的输出。</para>
    /// </summary>    
    [DisplayName("Make Building Layer")]
    public class MakeBuildingLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MakeBuildingLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_dataset">
        /// <para>Input Feature Dataset</para>
        /// <para>The input dataset from which the new building feature layers will be made. The building layer keeps the structure and the symbology grouped together.</para>
        /// <para>用于创建新建筑要素图层的输入数据集。建筑图层将结构和符号系统组合在一起。</para>
        /// </param>
        /// <param name="_out_layer">
        /// <para>Output Layer</para>
        /// <para>The name of the feature layer that will be created. The layer can be used as input to any geoprocessing tool that accepts a feature layer as input.</para>
        /// <para>将要创建的要素图层的名称。该图层可用作任何接受要素图层作为输入的地理处理工具的输入。</para>
        /// </param>
        public MakeBuildingLayer(object _in_feature_dataset, object _out_layer)
        {
            this._in_feature_dataset = _in_feature_dataset;
            this._out_layer = _out_layer;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Make Building Layer";

        public override string CallName => "management.MakeBuildingLayer";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_feature_dataset, _out_layer];

        /// <summary>
        /// <para>Input Feature Dataset</para>
        /// <para>The input dataset from which the new building feature layers will be made. The building layer keeps the structure and the symbology grouped together.</para>
        /// <para>用于创建新建筑要素图层的输入数据集。建筑图层将结构和符号系统组合在一起。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_dataset { get; set; }


        /// <summary>
        /// <para>Output Layer</para>
        /// <para>The name of the feature layer that will be created. The layer can be used as input to any geoprocessing tool that accepts a feature layer as input.</para>
        /// <para>将要创建的要素图层的名称。该图层可用作任何接受要素图层作为输入的地理处理工具的输入。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_layer { get; set; }


        public MakeBuildingLayer SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}